<?php include_once("../config.php"); ?>
 当前状态:<?
$data['ai_status'] = $_REQUEST['status'];
$table = $dbName.'.'.$table_Prefix.'boot';
if(isset($_REQUEST['status']) && $_REQUEST['status'] == 'on' || $_REQUEST['status'] == 'off'){
    $sql = update_date($table,$data,'nid','1');
    $query = mysql_query($sql) ;
    mysql_close($con);
    echo $_REQUEST['status'];
}else{
    $slist  = select_lines_items($table,'','status','',1);
    echo $slist[0]['status'];
}
?>


<div> <a href="http://oa.enpingshi.com/api/reboot.php?status=on"> 开 </a></div>
<div> <a href="http://oa.enpingshi.com/api/reboot.php?status=off"> 关 </a></div>
